package com.xayy.health.mgt.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author zhangxa
 */
@NoArgsConstructor
@Data
@Accessors(chain = true)
public class MultiparatersDTO {
    @JsonProperty("time")
    private String time;
    @JsonProperty("value")
    private Double value;

    private String errorTime;

    @ApiModelProperty(value = "斜率用-异常参数时间索引")
    private String timeIndex;

    @ApiModelProperty(value = "任务id")
    private Long taskId;

    @ApiModelProperty(value = "卫星code")
    private String sateCode;

    @ApiModelProperty(value = "参数code")
    private String paramCode;

    @ApiModelProperty(value = "子任务id")
    private Long taskChildId;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "斜率")
    private Double gradient;

    @ApiModelProperty(value = "名称")
    private String name;

    private List<SlopeValue> slopeValueList;

    private String tips;

    @ApiModelProperty(value = "异常标识语")
    private String msg;

    @NoArgsConstructor
    @Data
    public static class SlopeValue {
        @JsonProperty("x")
        private String x;
        @JsonProperty("y")
        private Double y;
    }

    @NoArgsConstructor
    @Data
    public static class TwoValue{
        @JsonProperty("time")
        private String time;
        @JsonProperty("value")
        private Double value;
        @JsonProperty("name")
        private String name;
    }
}
